package web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import pojo.User;
import service.DeptService;
import service.UserService;

@Controller
public class UserServlet {

    @Autowired
    private UserService userService;
    @Autowired
    private DeptService dept;

    public void addUser(User user){

        userService.addUser(user);

    }

    public void updateUser(User user){
        userService.update(user);
    }




}
